how to calculate simple interest in c programming